﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace DataAccess
{
    public class MenuRepository : ConnectionClass
    {
        public MenuRepository() : base() { }

        public IEnumerable<MainMenu> getMenus(int roleId)
        {
            return new UserRepository().GetRole(roleId).MainMenus.AsEnumerable();
        }
    }
}
